#include <vector>
#include <iostream>
#include <iterator>
#include <algorithm>

const char al[] = "abcdefghijklmnopqrstuvwxyz";

int main()
{
    std::vector<char> strings(&al[0], &al[0] + sizeof(al)/sizeof(al[0]));
    copy(strings.begin(), strings.end(),
         std::ostream_iterator<char>(std::cout, " "));
    std::cout << std::endl;
    
    copy(strings.rbegin(), strings.rend(),
         std::ostream_iterator<char>(std::cout, " "));
    
    return 0;
}
